<template>
  <div style="height:100%">
    <component :is="currentComponent" :form-obj="form" @jump="changeComponent"></component>
  </div>
</template>

<script>
import App from "./App.vue";
import FormList from "./FormList.vue";
export default {
  data() {
    return {
      currentComponent: 'FormList',
      formObj: {}
    };
  },
  methods: {
    changeComponent(componentName, formObj) {
      this.currentComponent = componentName;
      this.formObj = formObj || {}
    }
  },
  components: {
    App, FormList
    
  }
};
</script>
